package com.lcifn.middleware.rpc.client;

import com.lcifn.middleware.rpc.transport.Transport;

/**
 * 桩工厂类
 * @author lichao
 * @date 2021/1/31 14:19
 */
public interface StubFactory {

    /**
     * 创建远程服务桩
     * @param transport
     * @param serviceClass
     * @return T
     * @author lichao 2021/1/31 14:27
     */
    <T> T createStub(Transport transport, Class<T> serviceClass);
}
